package Java_object0823;

public class Product {
    public String name;
    public String size;
    public String color;
    public int height;


    public Product(){
    }

    public Product(String name, String size, String color, int height) {
        this.name = name;
        this.size = size;
        this.color = color;
        this.height = height;
    }


    public void speak(){
        System.out.println("商品名："+this.name+"   颜色: "+this.color+"   尺寸: "+this.size+"   厚度: "+this.height);
    }


}
